//
//  IBInspectableViewSwift.swift
//  DEMO
//
//  Created by J on 16/5/17.
//  Copyright © 2016年 J. All rights reserved.
//

import UIKit
@IBDesignable
class IBInspectableViewSwift: UIView {
   
    @IBInspectable var cornerRadius: CGFloat  = 0.0 {
        didSet{
            layer.cornerRadius = cornerRadius
            layer.masksToBounds = true
        }
    }
    
    
    
    @IBInspectable var borderColor: UIColor = UIColor(){
        didSet{
            
            layer.borderColor = borderColor.CGColor
            
        }
    }
    
    @IBInspectable var borderWidth: CGFloat = 0.0 {
        didSet{
            layer.borderWidth = borderWidth
        }
    }
    
    
}
